/*package in.hooray.rpc.config;

import java.util.List;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baidu.jprotobuf.pbrpc.spring.RpcServiceExporter;
import com.google.common.collect.Lists;

import in.hooray.rpc.demo.EchoServiceImpl;

@Configuration
public class RpcConfig {

	@Bean
	public EchoServiceImpl echoService() {
		return new EchoServiceImpl();
	}
	
	@Bean
	public RpcServiceExporter rpcServiceExporter() {
		List<Object> registerServices = Lists.newArrayList();
		registerServices.add(echoService());
		RpcServiceExporter exporter = new RpcServiceExporter();
		exporter.setServicePort(1031);
		exporter.setConnectTimeout(5000);
		exporter.setRegisterServices(registerServices );
		return exporter;
	}
	
}
*/